<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'updateDepartinfo.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
   <center>
    	<h2>修改部门信息</h2>
        <hr style=" border:1px solid" /><br/>
        <s:form action="departinfoactionupdate" method="post" namespace="/">
        <s:hidden name="d2.departid" value="%{#session.departinfo.departid}"></s:hidden>     
        
        	<table height="300px;">
        		<tr>
        			<td>部门名称</td>
        			<td><s:textfield name="d2.departname" value="%{#session.departinfo.departname}"></s:textfield></td>
        		</tr>        		
        		<tr>
        			<td>部门负责人</td>
        			<td><s:select name="d2.userinfo.userid" list="%{#session.dptlist}" listKey="userinfo.userid" listValue="userinfo.username"></s:select></td>
        		 	
        		  </tr>
        		<tr>
        			<td>联系电话</td>
        			<td><s:textfield name="d2.connecttelno" value="%{#session.departinfo.connecttelno}"></s:textfield></td>
        		</tr>
        		<tr>
        			<td>移动电话</td>
        			<td><s:textfield name="d2.connectmobiletelno" value="%{#session.departinfo.connectmobiletelno}"></s:textfield></td>
        		</tr>
        		<tr>
        			<td>传真</td>
        			<td><s:textfield name="d2.faxes" value="%{#session.departinfo.faxes}"></s:textfield></td>
        		</tr>
        		<tr>
        			<td colspan="2"><s:submit value="保存部门信息"></s:submit> <input type="button" onclick="location.href='/OAProject/admin_cg/zhk/showDepartinfo.jsp'" value="返回"></td>
        		</tr>
       		</table>
       </s:form>
  </body>
</html>
